import request from '@/utils/request'

// 查询资源查询列表
export function listSearch(query) {
  return request({
    url: '/search/search/list',
    method: 'get',
    params: query
  })
}

//省份数据列表查询
export function getProvinceList (data) {
  return request({
    url: `/search/search/provincelist`,
    method: 'get',
    data: data
  })
}

//学校数据列表查询
export function getUniversityList (provinceId) {
  return request({
    url: `/search/search/universitylist/` + provinceId,
    method: 'get',
  })
}

//门类数据列表查询
export function getCategoryList (universityId) {
  return request({
    url: `/search/search/categorylist/` + universityId,
    method: 'get',
  })
}

//学科数据列表查询
export function getSubjectList (categoryId) {
  return request({
    url: `/search/search/subjectlist/` + categoryId,
    method: 'get'
  })
}

//专业数据列表查询
export function getMajorList (subjectId) {
  return request({
    url: `/search/search/majorlist/` + subjectId,
    method: 'get'
  })
}

//考试科目数据列表查询
export function getCourseList (majorId) {
  return request({
    url: `/search/search/courselist/` + majorId,
    method: 'get'
  })
}
